﻿namespace WeWork.Model
{
    /// <summary>
    /// 会议邀请消息
    /// </summary>
    public class ChatMeeting : MsgChatRoomBase
    {
        /*
        {
            "msgid":"5935786683775673543_1603877328",
            "action":"send",
            "from":"ken",
            "tolist":["icef","test"],
            "roomid":"wr2vOpDgAAN4zVWKbS",
            "msgtime":1603877328914,
            "msgtype":"meeting",
            "meeting":{
                "topic":"夕会",
                "starttime":1603877400,
                "endtime":1603881000,
                "address":"",
                "remarks":"",
                "meetingtype":102,
                "meetingid":1210342560,
                "status":1
            }
        }
        */
        /// <summary>
        /// 消息内容
        /// </summary>
        public MeetingInfo meeting { set; get; }
    }

    public class MeetingInfo
    {
        /// <summary>
        /// 会议主题。String类型
        /// </summary>
        public string topic { set; get; }
        /// <summary>
        /// 会议开始时间。Utc时间
        /// </summary>
        public long starttime { set; get; }
        /// <summary>
        /// 会议结束时间。Utc时间
        /// </summary>
        public long endtime { set; get; }
        /// <summary>
        /// 会议地址。String类型
        /// </summary>
        public string address { set; get; }
        /// <summary>
        /// 会议备注。String类型
        /// </summary>
        public string remarks { set; get; }
        /// <summary>
        /// 会议消息类型。101发起会议邀请消息、102处理会议邀请消息。Uint32类型
        /// </summary>
        public int meetingtype { set; get; }
        /// <summary>
        /// 会议id。方便将发起、处理消息进行对照。uint64类型
        /// </summary>
        public long meetingid { set; get; }
        /// <summary>
        /// 会议邀请处理状态。1 参加会议、2 拒绝会议、3 待定、4 未被邀请、5 会议已取消、6 会议已过期、7 不在房间内。Uint32类型。只有meetingtype为102的时候此字段才有内容。
        /// </summary>
        public int status { set; get; }
    }
}
